﻿using System;
using System.Web;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                if (Tools.CheckAgent())
                {
                    Response.Redirect("~/MobileLogin.aspx", false);
                }
                else
                {
                    Response.Redirect("~/ULogin.aspx", false);
                }
            }
            catch (Exception ex)
            {
                log4net.LogManager.GetLogger(GetType()).Error("默认页面判断登录终端异常！"+ex.Message, ex);
            }
        }
    }
}
